package com.cimpm.task.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

@TableName("task_task_instance")
public class TaskInstance {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

	@TableField(value = "`have_done`")
	private Integer haveDone;

	@TableField(value = "`user_id`")
	private Integer userId;

	@TableField(value = "`record_id`")
	private Integer recordId;

	@TableField(value = "`sponer`")
	private Integer sponer;

    @TableLogic
    @TableField(value = "`is_deleted`")
    private Date isDeleted;

    @Version
    @TableField(value = "`version`")
    private Integer version;

    public Integer getId() { return id; }

    public void setId(Integer id) { this.id = id; }

    public Integer getHaveDone() { return haveDone; }

    public void setHaveDone(Integer haveDone) { this.haveDone = haveDone; }

    public Integer getUserId() { return userId; }

    public void setUserId(Integer userId) { this.userId = userId; }

    public Integer getRecordId() { return recordId; }

    public void setRecordId(Integer recordId) { this.recordId = recordId; }

    public Integer getSponer() { return sponer; }

    public void setSponer(Integer sponer) { this.sponer = sponer; }

    public Date getIsDeleted() { return isDeleted; }

    public void setIsDeleted(Date isDeleted) { this.isDeleted = isDeleted; }

    public Integer getVersion() { return version; }

    public void setVersion(Integer version) { this.version = version; }

    @Override
    public String toString() {
    return "taskInstance{" +
            "id=" + id +
            ", haveDone=" + haveDone +
            ", userId=" + userId +
            ", recordId=" + recordId +
            ", sponer=" + sponer +
            ", isDeleted=" + isDeleted +
            ", version=" + version +
            '}';
    }

}
